package nus.mtech.user;

import java.io.Serializable;

import nus.mtech.constant.Constant;

/**
 * @author Gaurav Pahwa
 *
 */
public class User implements Serializable {

	private static final long serialVersionUID = 1L;

	private String userID;
	private String password;
	private String role;


	public String getRole() {
		return role;
	}

	public User(String userID, String password, String role) {
		this.userID = userID;
		this.password = password;
		this.role = role;
	}

	public String getUserID() {
		return userID;
	}

	public String getPassword() {
		return password;
	}
	
	public boolean isAdmin(){
		return Constant.USER_ROLE_ADMIN.equals(role);
	}

}
